<?php 
function getAttrUrl($pos,$attr_value,$title)
{
	$get = $_GET;	
	$s = explode('-', $get['s']);
	$s[$pos] = $attr_value;
	$get['s'] = implode('-',$s);	
	$url = 'index.php?'.http_build_query($get);
	return "<a href='$url'>$title</a>";
}



 ?>